← Back to issue list

Wrong prefix is set in staged pkg-config files when alternate --prefix is configured

View original Launchpad issue

Metadata

Project
snapcraft (launchpad)
Number
#1774254
Type
issue
State
open
Author
~brlin
Labels
Created
2018-05-30 18:54:35.047647+00:00
Updated
2018-05-30 18:54:35.047647+00:00
Closed

Current evaluation

No evaluation has been recorded for this issue yet.

Issue body

The prefix variable of the pkg-config file is currently changed to `$SNAPCRAFT_STAGE$originally_configured_prefix_dir` by snapcraft when staging, and the value is not valid. ``` $ cat stage/lib/pkgconfig/hunspell.pc prefix=/home/ubuntu/poedit/stage/snap/poedit/current exec_prefix=${prefix} libdir=${exec_prefix}/lib includedir=${prefix}/include Name: hunspell Description: Hunspell spellchecking library Version: 1.3.4 Libs: -L${libdir} -lhunspell-1.3 Cflags: -I${includedir}/hunspell ```

Evaluation history

No evaluation history available.